#ifndef SLE_SERVER_H
#define SLE_SERVER_H

#include "sle_device_discovery.h"
#include "sle_errcode.h"

/* Service UUID */
#define SLE_UUID_SERVER_SERVICE        0x2222

/* Property UUID */
#define SLE_UUID_SERVER_NTF_REPORT     0x2323

/* Property Property */
#define SLE_UUID_TEST_PROPERTIES  (SSAP_PERMISSION_READ | SSAP_PERMISSION_WRITE)

/* Operation indication */
#define SLE_UUID_TEST_OPERATION_INDICATION  (SSAP_OPERATE_INDICATION_BIT_READ | SSAP_OPERATE_INDICATION_BIT_WRITE)

/* Descriptor Property */
#define SLE_UUID_TEST_DESCRIPTOR   (SSAP_PERMISSION_READ | SSAP_PERMISSION_WRITE)

errcode_sle_t sle_ssaps_register_cbks(void);

errcode_sle_t sle_server_add(void);

errcode_sle_t sle_server_send_report_by_uuid(const uint8_t *data, uint8_t len);

errcode_sle_t sle_server_init(void);
int sle_send_data(uint8_t *data, uint8_t length);

#endif